import request from '@/utils/request'

// 查询工厂地点列表
export function listFactorySite(query) {
  return request({
    url: '/SYSConfig/factorySite/list',
    method: 'get',
    params: query
  })
}

// 查询工厂地点详细
export function getFactorySite(siteId) {
  return request({
    url: '/SYSConfig/factorySite/' + siteId,
    method: 'get'
  })
}

// 新增工厂地点
export function addFactorySite(data) {
  return request({
    url: '/SYSConfig/factorySite',
    method: 'post',
    data: data
  })
}

// 修改工厂地点
export function updateFactorySite(data) {
  return request({
    url: '/SYSConfig/factorySite',
    method: 'put',
    data: data
  })
}

// 删除工厂地点
export function delFactorySite(siteId) {
  return request({
    url: '/SYSConfig/factorySite/' + siteId,
    method: 'delete'
  })
}
